package com.wq.wrongquestion.mapper.chi;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.wq.wrongquestion.entity.chi.ChineseEntity;

/**
 * 语文
 */
@Mapper
public interface ChineseMapper {
      
    @Select("select zjnm from m_chinesezj where zjid=#{zjID}")
    public String getChineseZjnm(String zjID);
    

    @Select("select zjID from m_chinesezj")
    public List<String>  getChineseZjID();
    /**
     * 获取所有章节
     * @return
     */

    public List<String>  getChineseZj();

    public List<ChineseEntity> getChinese(ChineseEntity chineseEntity);


    public List<ChineseEntity> getChineseByID(Integer id);
    /**
     * 插入错题 
     */

    public void insChinese(ChineseEntity chineseEntity);
    /**
     * 更新错题
     * @param chineseEntity
     */
    public Integer updChinese(ChineseEntity chineseEntity);
    /**
     * 删除错题
     * 
     */
    public Integer delChinese(Integer id); 
}
